package com.example.method.unit14;

/**
 * @author ASUS
 */
public class Main {
    static int  sumvarargs(int... intArrays){
        int sum, i;
        sum=0;
        for(i=0; i< intArrays.length; i++) {
            sum += intArrays[i];
        }
        return(sum);
    }
    public static void main(String[] args){
        int sum;
        sum = sumvarargs(10,12,33);
        System.out.println("数字相加之和为: " + sum);
    }
}